var __extends =
    (this && this.__extends) ||
    (function () {
      var t = function (n, o) {
        return (t =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (t, n) {
              t.__proto__ = n;
            }) ||
          function (t, n) {
            for (var o in n)
              Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
          })(n, o);
      };
      return function (n, o) {
        function e() {
          this.constructor = n;
        }
        if ("function" != typeof o && null !== o)
          throw new TypeError(
            "Class extends value " + String(o) + " is not a constructor or null"
          );
        t(n, o),
          (n.prototype =
            null === o
              ? Object.create(o)
              : ((e.prototype = o.prototype), new e()));
      };
    })(),
  AXCommonConfirmDialog = (function (t) {
    function n() {
      var n = t.call(this) || this;
      return (
        n.btn_common_ok.on(Laya.Event.CLICK, n, n.onDidClickOkBtnActionFn),
        n.btn_common_close.on(Laya.Event.CLICK, n, n.onDidClickOkBtnActionFn),
        n
      );
    }
    return (
      __extends(n, t),
      (n.showConfirmDialog = function (t, o, e, i, c) {
        null == this.confirm &&
          ((this.confirm = new n()), (this.confirm.zOrder = 1e3)),
          this.confirm.popup(),
          (this.confirm.title_name = o),
          (this.confirm.textArea_content.editable = !1),
          o.length > 0 && (this.confirm.lable_common_title.text = o),
          e.length > 0 && (this.confirm.textArea_content.text = e),
          i.length > 0 && (this.confirm.btn_common_ok.label = i),
          c.length > 0 && (this.confirm.btn_common_close.label = c);
      }),
      (n.prototype.onDidClickOkBtnActionFn = function (t) {
        if ("1000银两代金券" == this.title_name)
          if ("item_ok" == t.target.name) {
            var n = AXEnjoyPlaceView.openView();
            n.pos(0, 35), Laya.stage.addChild(n), this.close();
          } else this.close();
        else this.close();
      }),
      (n.close = function () {
        this.confirm && this.confirm.close();
      }),
      n
    );
  })(ui.common.AXCommonConfirmDialogUI);
